package com.hp.goods_service.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hp.common_api.entity.SpecParam;
import com.hp.goods_service.mapper.SpecParamMapper;
import com.hp.goods_service.service.ISpecParamService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 规格参数组下的参数名 服务实现类
 * </p>
 *
 * @author xray
 * @since 2021-04-23
 */
@Service
public class SpecParamServiceImpl extends ServiceImpl<SpecParamMapper, SpecParam> implements ISpecParamService {

    @Autowired
    private SpecParamMapper specParamMapper;

    @Override
    public List<SpecParam> getSpecParamsByCategoryId(Long cid) {
        return specParamMapper.selectSpecParamsByCategoryId(cid);
    }
}
